import request from '@/utils/request'

// 查询功能参数列表
export function listFunprompts(query) {
  return request({
    url: '/article/funprompts/list',
    method: 'get',
    params: query
  })
}

// 查询功能参数详细
export function getFunprompts(id) {
  return request({
    url: '/article/funprompts/' + id,
    method: 'get'
  })
}

// 新增功能参数
export function addFunprompts(data) {
  return request({
    url: '/article/funprompts',
    method: 'post',
    data: data
  })
}

// 修改功能参数
export function updateFunprompts(data) {
  return request({
    url: '/article/funprompts',
    method: 'put',
    data: data
  })
}

// 删除功能参数
export function delFunprompts(id) {
  return request({
    url: '/article/funprompts/' + id,
    method: 'delete'
  })
}
